GdkWindow: Default to unfocused
authorTimm Bäder <mail@baedert.org>
Tue, 18 Jul 2017 10:36:35 +0000 (12:36 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:16 +0000 (21:27 -0400)
commitbf22dea2cebb99f4c22d4b5ec2549ed711894ec7
treee548b1688a56b73e38ff67079916cea12b2d00d9
parent9bf5def6b729f5ff4d587e6b7525ba05e713cfc9
GdkWindow: Default to unfocused

Don't set the have_focused field of the window's toplevel to TRUE by
default and don't set the FOCUSED state in gdk_window_map. This a means
toplevel window's state is what the WM expects, and the FOCUSED state
will be set anyway when we map the window and receive a _NET_WM_STATE
message.
gdk/gdkwindow.c
gdk/x11/gdkwindow-x11.c